﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddPay.aspx.cs" Inherits="ZX.WebApp.Crm.Modules.AddPay" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link href="../../Styles/base.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.calendar.js" type="text/javascript"></script>
    <link href="../../Styles/default/calendar.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/extend.validate.js" type="text/javascript"></script>
    <script src="../../Scripts/CombinButton.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/paginator/paginator-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/treeview/treeview-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/resize/resize-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/event-delegate/event-delegate-min.js"></script>
    <link href="../../Styles/extendTable.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            font-size: 13px;
        }
        table, td
        {
            border: 0px solid #cccccc;
            border-collapse: collapse;
        }
        .tr1
        {
            border-bottom: 1px solid #cccccc; /*border: 1px solid #cccccc;*/
        }
        
        .TotalMoneyDiv
        {
            text-align: right;
            margin-top: 5px;
            margin-right: 5px;
        }
        #yui-dt14-th-SaleRoad-liner span  , #yui-dt14-th-PayMoney-liner span
        {
            color: Red;
        }
    </style>
</head>
<body class="yui-skin-sam">
    <form id="form1" runat="server">
    <div>
        <div id="toolbar" style="margin-top: 12px; text-align: center;">
            <%--审 批 信 息 操 作--%>
            <fieldset style='display: <%=(strWorkFlowId==""||strOperStatus!="0"||strBack=="check") ?"none":""%>;'>
                <legend><font style="font-size: 13px; color: #082c50; font-family: 宋体">&nbsp;审 批 信 息</font></legend>
                <table>
                    <tr>
                        <td>
                            审批人Id:
                        </td>
                        <td align="left">
                            <asp:Label ID="lbUserId" runat="server"></asp:Label>
                        </td>
                        <td>
                            审批人:
                        </td>
                        <td align="left">
                            <asp:Label ID="lbUserName" runat="server" Text="lbUserName"></asp:Label>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td>
                            <asp:Label ID="Label5" runat="server" Text="部门:" Width="70px"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lbArch" runat="server" Text="lbArch" Width="104px"></asp:Label>
                        </td>
                        <td class="line" style="width: 45px; height: 21px">
                            <asp:Label ID="Label7" runat="server" Text="职务:"></asp:Label>
                        </td>
                        <td class="line" style="width: 45px; height: 21px">
                            <asp:Label ID="lbDuty" runat="server" Text="lbDuty" Width="160px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            审批结果:
                        </td>
                        <td align="left">
                            <asp:RadioButton ID="rbtOk" runat="server" Checked="True" Text="同意" GroupName="1" />
                            <asp:RadioButton ID="rbtNo" runat="server" Text="拒绝" GroupName="1" />
                        </td>
                        <td>
                            审批时间:
                        </td>
                        <td align="left">
                            <asp:Label ID="lbAuditTime" runat="server" Text="lbAuditTime"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            审批意见:
                        </td>
                        <td class="line" colspan="3">
                            <asp:TextBox ID="tbxMessage" MaxLength="100" ToolTip="不超过100个汉字" runat="server" Height="73px"
                                Rows="3" TextMode="MultiLine" Width="95%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 21px">
                        </td>
                        <td colspan="4" style="height: 21px">
                            <asp:Label ID="lbOperatorInsId" runat="server" Text="lbOperatorInsId" Visible="False"></asp:Label>
                            <asp:Label ID="lbWorktaskInsId" runat="server" Text="lbWorktaskInsId" Visible="False"></asp:Label>
                            <asp:Label ID="lbWorktaskId" runat="server" Text="lbWorktaskId" Visible="False"></asp:Label>
                            <asp:Label ID="lbWorkflowInsId" runat="server" Text="lbWorkflowInsId" Visible="False"></asp:Label>
                            <asp:Label ID="lbWorkflowId" runat="server" Text="lbWorkflowId" Visible="False"></asp:Label>
                            <asp:Label ID="lbAuditId" runat="server" Text="lbAuditId" Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <%--审 批 信 息 列 表--%>
            <fieldset style='display: <%=(strWorkFlowId==""||strSpInfo!="1")?"none":""%>;'>
                <legend><font style="font-size: 13px; color: #082c50; font-family: 宋体">审 批 信 息</font></legend>
                <asp:Repeater ID="rptCheckInfo" runat="server">
                    <HeaderTemplate>
                        <table cellspacing="0" rules="all" border="1" id="ctl06_gvAuditMessage" style="width: 100%;
                            border-collapse: collapse;">
                            <tr class="gridHead" align="left">
                                <th scope="col">
                                    审批人Id
                                </th>
                                <th scope="col">
                                    审批人
                                </th>
                                <th scope="col" style="display: none">
                                    部门
                                </th>
                                <th scope="col" style="display: none">
                                    职务
                                </th>
                                <th scope="col">
                                    审批结果
                                </th>
                                <th scope="col">
                                    审批意见
                                </th>
                                <th scope="col">
                                    审批时间
                                </th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("AuditUserId") %>
                            </td>
                            <td>
                                <%#Eval("AuditUserName") %>
                            </td>
                            <td style="display: none">
                                <%#Eval("AuditDuty") %>
                            </td>
                            <td style="display: none">
                                <%#Eval("AuditArch") %>
                            </td>
                            <td>
                                <%#Eval("AuditResult") %>
                            </td>
                            <td>
                                <%#Eval("Message") %>
                            </td>
                            <td>
                                <%#Eval("AuditTime") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table></FooterTemplate>
                </asp:Repeater>
            </fieldset>
            <%--流 程 操 作--%>
            <fieldset style='display: <%=(strWorkFlowId==""||strOperStatus!="0")?"none":""%>;'>
                <legend><font style="font-size: 13px; color: #082c50; font-family: 宋体">流 程 操 作 </font>
                </legend>
                <asp:Button ID="btnAccept" runat="server" Text="知道了" CssClass="btnCheck" Visible="false" OnClick="btnAccept_Click"
                    UseSubmitBehavior="False" />
                <asp:Button ID="btnDrop" runat="server" Text="放弃" CssClass="btnCheck" Visible="false" OnClick="btnDrop_Click"
                    UseSubmitBehavior="False" />
                <asp:Button ID="btnReturn" runat="server" Text="退回" Visible="false" CssClass="btnCheck" OnClick="btnReturn_Click"
                    UseSubmitBehavior="False" />
                <asp:Button ID="btnDone" runat="server" Text="提交" CssClass="btnCheck" OnClick="btnDone_Click" OnClientClick="if(!checkDate()){return;}"
                    UseSubmitBehavior="False" />
                <table>
                    <tr>
                        <td colspan="4">
                        </td>
                    </tr>
                </table>
            </fieldset>
            <%--提 交 按 钮--%>
            <p>
                <table cellspacing="0" rules="all" border="1" id="Table1" style='display: <%=((strWorkFlowId==""||strBack=="unDone")&&strDirectPay==""&&GetStringFromQueryString("view", "")!="checks"&&GetStringFromQueryString("view", "")!="AgainCheck")?"":"none"%>;'>
           
                   <%-- <%if (strTitle == "总部缴款" || strTitle == "英才缴款" || strDescript == "zbjk" || strDescript == "ycjk")
                      {  %>--%>
                      <tr class="tr1" style="display:none"> 
                    <%--<%  }
                      else
                      { %>
                    <tr class="tr1">  <%} %>--%>
                        <%-- <td width="95px">
                            &nbsp;<font color="red">是否总部收款：</font>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="drpHQ" runat="server">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:DropDownList>
                        </td>--%>
                        <td width="75px">
                            &nbsp;<span style="color: Red">*</span>&nbsp;核算人员:
                        </td>
                        <td align="left">
                            <input type="hidden" id="CustomId" runat="server" name="CustomId" />
                            <input id="txtCustomId" runat="server" readonly="readonly" name="txtCustomId" type="text"
                                style="width: 150px" />
                            <button id="btnCustomId" disabled="disabled" name="X" type="button" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                    </tr>
                    <tr class="tr3">
                        <td align="center" colspan="2">
                            <button type="button" id="btnSave" name="btnSave">
                                提交</button>&nbsp;&nbsp;&nbsp;&nbsp;
                            <button type="button" id="btnClose" name="btnClose">
                                取消</button>
                        </td>
                    </tr>
                </table>
                <button type="button" id="btnQdnx" name="btnQdnx" runat="server">
                    提交</button>&nbsp;&nbsp;&nbsp;&nbsp;
            </p>
        </div>
        <div class="fieldForm" id="fieldForm">
              

            <div id="content">
                <h3>
                    基本信息</h3>
                <table class="table1">
                    <tr>
                        <th>
                            <span>单号</span>
                        </th>
                        <td>
                            <input type="text" runat="server" id="Code" readonly="readonly" name="Code" class="width60"
                                value="bb" style="background: #e7eaf4;"/>
                        </td>
                        <td colspan="2">
                            &nbsp;
                        </td>
                        <th>
                            <span>填单日期</span>
                        </th>
                        <td>
                            <input runat="server" type="text" id="Date" name="Date" class="width60" readonly="readonly"
                                dtype="D" size="10" maxlength="10" style="background: #e7eaf4;"  />
                        </td>
                    </tr>
                    <tr>
                        <th width="10%">
                            <span style="color: Red">*</span><span>客户名称</span>
                        </th>
                        <td width="23%">
                            <input type="hidden" id="OrderCode" name="OrderCode" runat="server" /><input type="text"
                                id="CustomerName" runat="server" name="CustomerName" readonly="readonly" class="width60" style="background: #e7eaf4;" />
                            <button id="btnOrderCode" runat="server" name="J" type="button" class="btnCheck"
                                style="width: 30px">
                                选择</button>
                        </td>
                        <th width="10%">
                            <span>客户编码</span>
                        </th>
                        <td width="23%">
                            <input type="text" id="txtOrderCode" runat="server" name="txtOrderCode" readonly="readonly"
                               class="width60" style="background: #e7eaf4;" />
                        </td>
                        <th width="10%">
                            <span>客户类型</span>
                        </th>
                        <td width="23%">
                            <input type="text" id="CustomerType" runat="server" name="CustomerType" readonly="readonly"
                             class="width60"  style="background: #e7eaf4;" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <span>信息专员</span>
                        </th>
                        <td>
                            <input type="text" id="AddUserName" runat="server" class="width60" style="background: #e7eaf4;"
                                disabled="disabled" />
                        </td>
                        <th>
                            <span>行销顾问</span>
                        </th>
                        <td>
                            <input type="text" id="SaleadName" runat="server" class="width60" style="background: #e7eaf4;"
                                disabled="disabled" />
                        </td>
                        <th>
                            <span>一推讲师</span>
                        </th>
                        <td>
                            <input type="text" id="LectorName" class="width60" runat="server" style="background: #e7eaf4;"
                                disabled="disabled" />
                        </td>
                    </tr>
                    <tr style="display: <%=(GetHistory==""?"none":"")%>">
                        <td>
                            &nbsp;实际添加人：<span style="color: Red">*</span>
                        </td>
                        <td align="left" colspan="2">
                            <input type="hidden" id="hdnActionUser" runat="server" name="hdnActionUser" />
                            <input id="txtActionUser" runat="server" readonly="readonly" name="txtActionUser"
                                type="text" style="width: 143px" />
                            <button id="btnActionUser" name="X" type="button" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                        <td colspan="4">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <span>客户经理</span>
                        </th>
                        <td>
                            <input type="hidden" id="JName" runat="server" />
                            <input id="txtJName" runat="server" readonly="readonly" type="text" class="width60" />
                            <button id="btnJName" name="X" runat="server" type="button" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                        <th>
                            <span>状态</span>
                        </th>
                        <td>
                            <asp:DropDownList ID="State" name="State" runat="server" CssClass="width65" Enabled="false">
                            </asp:DropDownList>
                        </td>
                        <th>
                            <span style="color: Red">*</span><span>业绩归属</span>
                        </th>
                        <td>
                            <input type="hidden" id="DeptId" runat="server" name="DeptId" />
                            <input id="txtDeptId" name="txtDeptId" runat="server" readonly="readonly" type="text"
                               class="width60" />
                            <button id="btnDeptId" name="7" runat="server" type="button" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                    </tr>  <tr>
                        <th>
                            <span>客户总监</span>
                        </th>
                        <td>
                            <input type="hidden" id="ZName" runat="server" />
                            <input id="txtZName" runat="server" readonly="readonly" type="text" class="width60" />
                            <button id="btnZName" name="X" type="button" runat="server" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                        <th>
                            <span>分总</span>
                        </th>
                        <td>
                            <input type="hidden" id="FName" runat="server" />
                            <input id="txtFName" runat="server" readonly="readonly" type="text" class="width60" />
                            <button id="btnFName" name="X"  runat="server" type="button" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                        <th>
                            <span>所属团队</span>
                        </th>
                        <td>
                            <input type="hidden" id="TDeptId" runat="server" name="TDeptId" />
                            <input id="txtTDeptId" name="txtTDeptId" runat="server" readonly="readonly" type="text"
                               class="width60"/>
                            <button id="btnTDeptId" name="G" runat="server" disabled="disabled" type="button" class="btnCheck" style="width: 30px">
                                选择</button>
                        </td>
                    </tr>
                    <tr>
                        <th>
                           <span style="color: Red">*</span><span>预计到款日期</span>
                        </th>
                        <td>
                            <input runat="server" type="text" readonly="readonly" dtype="D"
                                id="PayDate" name="PayDate" class="width60"/>
                        </td>
                        <th>
                            <span>币别</span>
                        </th>
                        <td>
                            <asp:DropDownList ID="ValutaID" name="ValutaID" runat="server" CssClass="width65">
                            </asp:DropDownList>
                        </td>
                        <th>
                            <span>汇率</span>
                        </th>
                        <td>
                            <%--<input type="text" id="PillID" name="PillID" disabled="disabled" value="1" style="width: 95%;
                            background: #e7eaf4;" />--%>
                            <asp:DropDownList ID="PillID" name="PillID" runat="server"  CssClass="width65">
                                <asp:ListItem Value="00000000-0000-0000-0000-000000000000">1.00</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr style='display: <%=(strWorkFlowId==""||strOperStatus=="1")&&strDirectPay==""&&GetStringFromQueryString("view", "")!="checks"?"none":""%>;'>
                        <th>
                            <span>发票号码</span>
                        </th>
                        <td>
                            <input type="text" id="InvoiceNum" maxlength="50" title="多个可输入:88888888;88888889"
                                onkeyup="this.value=this.value.replace(/[^\d\;]/g,'')" onafterpaste="this.value=this.value.replace(/[^\d\;]/g,'')"
                                runat="server" name="InvoiceNum" class="width60" />
                        </td>
                        <th>
                            <span>收据号</span>
                        </th>
                        <td>
                            <input type="text" id="Receipt" maxlength="50" title="多个可输入:88888888;88888889" onkeyup="this.value=this.value.replace(/[^\d\;]/g,'')"
                                onafterpaste="this.value=this.value.replace(/[^\d\;]/g,'')" runat="server" name="Receipt"
                                class="width60"/>
                        </td>
                        <th>
                            <span style="color: Red">*</span><span>业绩归属日期</span>
                        </th>
                        <td>
                            <input runat="server" type="text" readonly="readonly" dtype="D"
                                id="FactPayDate" name="FactPayDate" class="width60" />
                        </td>
                    </tr>
                    <tr style='display: <%=(strWorkFlowId==""||strOperStatus=="1")&&strDirectPay==""&&GetStringFromQueryString("view", "")!="checks"?"none":""%>;'>
                    <th>
                            <span style="color: Red">*</span><span>银行到账日期</span>
                        </th>
                        <td>
                           <input runat="server" type="text" readonly="readonly" dtype="D"
                                id="BankDate" name="BankDate" class="width60" />
                        </td><th style="display:none">
                            <span>是否算业绩</span>
                           <asp:DropDownList ID="ddlIsYj" runat="server" CssClass="width65">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList></th>
                       
                        <th>
                            <span style="color: Red">*</span><span>帐套</span>
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlAccount" name="ddlAccount" runat="server" CssClass="width65">
                            </asp:DropDownList>
                        </td>
                      
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <th>
                            <span style="color: Red;">*</span> <span>汇款单位/人</span>
                        </th>
                        <td colspan="5">
                            <textarea runat="server"  onkeydown="showSetNum('txtPayAddress','spanAddress',30)"
                                onkeyup="showSetNum('txtPayAddress','spanAddress',30)" title="最多可输入30个汉字" name="txtPayAddress"
                                style="height: 60px; overflow: hidden;width:80%"  id="txtPayAddress" ></textarea>
                                <br /><span id="spanAddress" class="span_font"></span>
                        </td>
                        <td style="display:none">
                            <asp:DropDownList ID="IsPerformance" runat="server" CssClass="width65" onchange="getSelectValue()"
                                AppendDataBoundItems="true">
                                <asp:ListItem Value="1">持续业绩产生</asp:ListItem>
                                <asp:ListItem Value="2">独立开发业绩产生</asp:ListItem>
                                <asp:ListItem Value="3">后续业绩产生</asp:ListItem>
                                <asp:ListItem Value="4">论坛价值业绩产生</asp:ListItem>
                                <asp:ListItem Value="0" Selected>否</asp:ListItem>
                            </asp:DropDownList> <br />   <br />
                            <span class="span_font">&nbsp;请选择是否价值业绩</span>
                        </td></tr><tr>
                        <th>
                            <span>备注</span>
                        </th>
                        <td colspan="5">
                            <textarea runat="server" id="Explain" onkeydown="showSetNum('Explain','spSpans',200)"
                                onkeyup="showSetNum('Explain','spSpans',200)" title="最多可输入200个汉字" name="Explain"
                                style="height: 60px; overflow: hidden;width:80%"></textarea> <br />
                            <span id="spSpans" class="span_font"></span>
                        </td>

                    </tr>
                </table>

                 <%--<br />
                    <font color="red">佣金计算相关参数<hr /></font>--%>
                <table class="table1" style="display:none">
                    <tr>
                        <th>
                            <span style="color: Red">*</span>是否15个月内成交
                        </th><td>
                        <asp:DropDownList ID="ddlIsFifteenMonth" runat="server">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList></td>
                        <th>
                            <span style="color: Red">*</span>是否项目结项6个月内续签（不包含产品类、俱乐部）
                        </th><td>
                        <asp:DropDownList ID="ddlIsProjectOver" runat="server">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList></td>
                        <th>
                            <span style="color: Red">*</span>是否总裁内训
                        </th><td>
                        <asp:DropDownList ID="ddlIsCEOInnerTrain" runat="server">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList></td>
                </tr><tr>
                        <th>
                            <span style="color: Red">*</span>是否内训中续签内训
                        </th><td>
                        <asp:DropDownList ID="ddlIsInnerTrainSian" runat="server">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList></td>
                        <th>
                            <span style="color: Red">*</span>是否一推现场或4个月内完款
                        </th><td>
                        <asp:DropDownList ID="ddlIsFisrtSale" runat="server">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList></td>
                        <th>
                             
                        </th><td>
                        </td>
                </tr></table>
                
            </div>
            <div class="extendDiv"> 
                <div id="con_two_1">  <h3>
                    <button type="button" id="btnNew1" name="btnNew1">
                        新增</button>
                    <button type="button" id="btnDelete1" name="btnDelete1">
                        删除</button>  </h3>
                    <div id="con_1">
                    </div>
                </div>
                <div class="TotalMoneyDiv" id="TotalMoneyDiv" style="color: Red">
                    总计(本次金额)：
                    <input type="text" runat="server" id="TotalMoney" name="TotalMoney" disabled="disabled"
                        style="width: 90px; color: Red;" />
                </div>
                  <table id="tbReturn" class="tableContent" style="width: 100%" border="1">
                <tr>
                    <td style="height: 16px;text-align:center" colspan="3">
                        <asp:GridView ID="gvworkflowMessage" CssClass="GridViewStyle" runat="server" AutoGenerateColumns="False"
                            Width="100%">
                            <Columns>
                                <asp:BoundField DataField="WorkFlowNo" HeaderText="流程编号">
                                    <ItemStyle Width="8%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="TaskInstanceCaption" HeaderText="任务名称">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FlowCaption" HeaderText="流程名称">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="OperatedDes" HeaderText="处理者">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" DataField="taskEndTime"
                                    HeaderText="任务结束时间">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Message" HeaderText="审批意见">
                                    <ItemStyle Width="15%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SuccessMsg" HeaderText="状态">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                            </Columns>
                            <FooterStyle CssClass="FooterStyle" />
                            <RowStyle CssClass="RowStyle" />
                            <EmptyDataRowStyle CssClass="EmptyRowStyle" />
                            <PagerStyle CssClass="PagerStyle" />
                            <SelectedRowStyle CssClass="SelectedRowStyle" />
                            <HeaderStyle CssClass="HeaderStyle" />
                            <EditRowStyle CssClass="EditRowStyle" />
                            <AlternatingRowStyle CssClass="AltRowStyle" />
                        </asp:GridView>
                    </td>
                </tr></table>
            </div>

        </div>
        <asp:HiddenField ID="ID" runat="server" />
        <asp:HiddenField ID="WorkFlowId" runat="server" />
        <asp:HiddenField ID="WorkTaskId" runat="server" />
        <asp:HiddenField ID="WorkFlowInsId" runat="server" />
        <asp:HiddenField ID="WorkTaskInsId" runat="server" />
        <asp:HiddenField ID="pValue" runat="server" />
        <asp:HiddenField ID="pInvoiceNum" runat="server" />
        <asp:HiddenField ID="pReceipt" runat="server" />
        <asp:HiddenField ID="pFactPayDate" runat="server" />
        <asp:HiddenField ID="pCheck" runat="server" />
        <asp:HiddenField ID="hdnMessage" runat="server" />
        <asp:HiddenField ID="hdnSelectValue" runat="server" />
    </div>
    <div id="dialog1" class="yui-pe-content">
        <div class="hd">
            客户选择</div>
        <div class="bd">
            <iframe id="EditUIWindow1" frameborder="0" src="" style="width: 100%; height: 100%;
                margin: 0px; padding: 0px;"></iframe>
        </div>
    </div>
    <div id="dialog2" class="yui-pe-content">
        <div class="hd">
            所属业绩部门选择</div>
        <div class="bd">
            <iframe id="EditUIWindow2" frameborder="0" src="" style="width: 100%; height: 100%;
                margin: 0px; padding: 0px;"></iframe>
        </div>
    </div>
    <div id="dialog3" class="yui-pe-content">
        <div class="hd">
            人员选择</div>
        <div class="bd">
            <iframe id="EditUIWindow3" frameborder="0" src="" style="width: 100%; height: 100%;
                margin: 0px; padding: 0px;"></iframe>
        </div>
    </div>
    </form>
    <form id="form2" action="../../Extend/AjaxData/DataSave.aspx">
    <textarea style="display: none" id="jsonDataContent" rows="2" cols="2" name="jsonDataContent"></textarea>
    </form>
</body>
<script type="text/javascript">
    var instance = [{ "Caption": "aaaaaaaaa"}];
    var instance1 = [{ "Caption": ""}];
    var flag = "<%=Flag %>";
    var addUser="<%=addUser %>";
    var strLocalDate = "<%=LocalDate %>";//当前时间
    var Url = "../../Extend/AjaxData/CustomOperating.aspx";
    var myDataSource1, mDataTable1;
    var btnSave = "", btnModify = "", btnClose = "", EmptyData = "",
        btnNews1 = "", btnDeletes1 = "", btnSaves1 = "",btnQdnx="";
    var action = "<% =DataAction %>", condition = "";
    var ListCrmProduct = [<%=ListCrmProduct %>];
    var ListRecord = [<%=ListRecord %>];
    var getTsid="<%=getTaskInsId %>";
    var ListPayType=  [<%=ListPayType %>];
    var ListAccount=  [<%=ListAccount %>];
    var getOpts="<%=iFlow %>";
    var strBack="<%=strBack %>",strHistory="<%=GetHistory %>";
    var strDirect="<%=strDirectPay %>";
    var tempTitle="<%=strTitle %>";
    var strDescript="<%=strDescript %>";
    var StrAllPay="<%=StrAllPay %>";
    (function () {      
//        if(tempTitle=="总部缴款"||strDescript=="zbjk"){
//             $("#CustomId").val("E3465754-16FF-47A3-BA26-3BF7B5D50235"); 
//        }else 
        if(tempTitle=="英才缴款"||strDescript=="ycjk") {
             $("#CustomId").val("93F5A407-00E8-419E-B91C-FDE0A57A82D5");
        }
        var Dom = YAHOO.util.Dom,
            Event = YAHOO.util.Event;
        Event.onDOMReady(function () {    
            var layout = new YAHOO.widget.Layout({
                units: [
                { position: 'bottom', height: 160, body: 'toolbar',resize: true, gutter: '1 1 1 1', scroll: true, zIndex: 2 },
                { position: 'center', body: 'fieldForm', gutter: '0 1 1 1', scroll: true }
                ]
            });
            layout.render();
        });
    })();
 var checkOptions=function(){
    
 } 
 var getSelectValue=function(){     
    $("#hdnSelectValue").val($("#IsPerformance").val()); 
 }
  
   //关闭当前页
var Close1 = function () { 
window.parent.$("#tabs").tabs('close', '现场缴款');
    window.parent.$("#tabs").tabs('close', '起草缴款单');
     window.parent.$("#tabs").tabs('close', '编辑缴款单信息');
    //window.parent.$("#tabs").tabs('close', '<%=getTitle %>');
}
 var Close = function () { 
    //window.parent.$("#tabs").tabs('close', '起草缴款单');
    window.parent.$("#tabs").tabs('close', '');
}
</script>
<script src="../../Scripts/yui.list.button.event.js" type="text/javascript"></script>
<script src="../../Scripts/Appjs/model.AddPay.Extend.js" type="text/javascript"></script>
</html>
